package com.txzt.gaea.provide.dto;

import com.txzt.base.core.RtnInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InformationDeliveryUpdateDTO implements Serializable {

    private Long id;
    /**
     * 附件关联ID。多个用逗号分隔
     */
    private String fileInfoIds;

    /**
     * 标题
     */
    private String informationTitle;

    /**
     * 信息类型
     */
    private Integer informationType;

    /**
     * 秘密等级
     */
    private Integer secrecyLevel;

    public RtnInfo checkValid() {
        if (id == null)
            return RtnInfo.PARAM_MISSING;
        return RtnInfo.SUCCESS;
    }

    /**
     * 用户id集合，用分号分割
     */
    private String userIds;
}
